<@master template="master/master-loan"  title="按团队统计放款量">
<div class="detaiTab  detaiTab1">
<#assign statisticDate=vo.statisticDate />
<#assign auditorName=vo.auditorName />
<#assign province=vo.province />
<form  action="/ptt/reportStatByTeam" id="afterloanform" class="clearfix action-ajax-form-valid" data-action-html="#action_load_body">
	<table border="0" cellpadding="0" cellspacing="0" width="100%">
	    <tr>
	    	<td class="bg" align="right">统计日期:
	       		<font color="red">*</font>
	       	</td>
	       	<td >
	    		<@date id="statisticDate" name="statisticDate" value="${vo.statisticDate}" class="action-valid-field" data\-action\-valid\-rule="required;" data\-action\-valid\-msg\-required="日期不能为空！" />
	            <span class="action-field-error" for="statisticDate" style="color:red;"></span>
	    	</td>
	    </tr>
	    <tr>
	    	<td class="bg" align="right">
	    		省区:&nbsp;  &nbsp;
	       	</td>
	       	<td >
	    		<select name="province" id="province">
        		<option  value="">请选择
        		<#list proList as proList>
        			<option value="${proList.provinceName}" <#if proList.provinceName == vo.province>selected="selected" </#if>>${proList.provinceName}
        		</#list>
        	</select>
	    	</td>
	    </tr>
	    <tr>
	    	<td class="bg" align="right">团队负责人:
	       	</td>
	       	<td >
	       		<@autocomplete url="/pttRest/search/employee?empName=" name="auditorName"   hideIdName="auditorNameNo"  />(联想)
	    	</td>
	    </tr>
          <tr>
            <td class="bg" align="right">
               团队长 在职状态
            </td>
            <td >
                <select name="isDimission" id="isDimission">
                    <option  value="">请选择
                    <option value="0" <#if 0 == vo.isDimission>selected="selected" </#if>>在职
                    <option value="1" <#if 1 == vo.isDimission>selected="selected" </#if>>离职
                </select>
            </td>
        </tr>
	     <tr>
	    	<td class="bg" align="right">团队长入职日期:</td>
	       	<td > 
	    		<@date id="joinDateStart" name="joinDateStart" value="${vo.joinDateStart}" />
	    	-
	    		<@date id="joinDateEnd" name="joinDateEnd" value="${vo.joinDateEnd}" />
	    	</td>

	    </tr>
	    <tr>
               <td class="bg" align="right">团队长所在岗位:</td>
               <td colspan="3">
               <@autocomplete url="/pttRest/search/post?postName=" hideIdName="postCode" placeholder = "请输入岗位"
				    name="postName" value="${vo.postName}"  hideIdValue="${vo.postCode}"  style="
				    border-radius: 5px;
				    border: 1px solid #ccc;
				    width: 340px;
				    height: 30px;
				    line-height: 30px;" 
				   />  
               </td>
        </tr>
	    
	    
	    
	    <tr>
            <td class="bg"></td>
            <td >
            	<@permission permissionName="queryTeamTotal">
	                <input type="submit" value="查询" class="btn_auto_30 btn_blue" />
            	</@permission>
            	<@permission permissionName="downloadTeamTotal">
	            	<#if statisticDate==null>
	            		<span><a onclick="return false" href="#" target="_blank" class="btn_auto_30 btn_gray" >导出</a><span class=" fs14" style="color: red;" >【请先查询后再导出报表】</span><font class="red ml10"> ${errorMessage}</font></span>
	            	<#else>
						<span><a href="/ptt/downloadTeam?statisticDate=${vo.statisticDate}&province=${vo.province}&auditorName=${vo.auditorName}&auditorNameNo=${vo.auditorNameNo}&isDimission=${vo.isDimission}&joinDateStart=${vo.joinDateStart}&joinDateEnd=${vo.joinDateEnd}&postName=${vo.postName}&postCode=${vo.postCode}" target="_blank" class="btn_auto_30 btn_blue" >导出</a><span class=" fs14" style="color: red;" >【请先查询后再导出报表】</span><font class="red ml10"> ${errorMessage}</font></span>
					</#if>
				</@permission>
				</br>
            </td>
        </tr>
        <tr>
        </tr>
	 </table>
	</form>
</div>
<#if statisticDate == null >
	<div id="o2o_team"  class="action-ajax-load mt20" data-url="${o2ourl}" style="display:none;"></div>
<#else>
	<div id="o2o_team"  class="action-ajax-load mt20" data-url="${o2ourl}"></div>
</#if>
</@master>



